package com.ces.knacky.model;

import java.io.Serializable;
import java.util.Set;

import javax.xml.bind.annotation.XmlTransient;

import org.apache.commons.lang.builder.EqualsBuilder;

import com.ces.knacky.framework.model.AbstractBaseEntity;

/** @author Hibernate CodeGenerator */
public class BidWorkflowStatus extends AbstractBaseEntity  implements Serializable {
    /** persistent field */
    private Set bidWorkflowAudits;

    /** full constructor */
    public BidWorkflowStatus(String description, com.ces.knacky.model.Flag flag, Set bidWorkflowAudits) {
        this.description = description;        
        this.bidWorkflowAudits = bidWorkflowAudits;
    }

    /** default constructor */
    public BidWorkflowStatus() {
    }

    /** minimal constructor */
    
    public BidWorkflowStatus(Set bidWorkflowAudits) {
        this.bidWorkflowAudits = bidWorkflowAudits;
    }

    @XmlTransient
    public Set getBidWorkflowAudits() {
        return this.bidWorkflowAudits;
    }

    public void setBidWorkflowAudits(Set bidWorkflowAudits) {
        this.bidWorkflowAudits = bidWorkflowAudits;
    }


    public boolean equals(Object other) {
        if ( !(other instanceof BidWorkflowStatus) ) return false;
        BidWorkflowStatus castOther = (BidWorkflowStatus) other;
        return new EqualsBuilder()
            .append(this.getId(), castOther.getId())
            .isEquals();
    }

}
